home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
sticpsrc.lzh
/
SOURCE.ARC
/
IFACE.H
< prev
next >
Wrap
Text File
|
1990-07-12
|
2KB
|
38 lines
/* Interface control structure */
struct interface {
struct interface *next; /* Linked list pointer */
char *name; /* Ascii string with interface name */
int (*ioctl)(); /* Function to handle device control */
int (*send)(); /* Routine to send an IP datagram */
int (*output)(); /* Routine to send link packet */
int (*raw)(); /* Routine to call to send raw packet */
int (*slipraw)(); /* Routine to send raw slip packet (KISS only) */
int (*recv)(); /* Routine to kick to process input */
int (*stop)(); /* Routine to call before detaching */
struct kiss *kiss; /* When KISS if: multi-channel def */
int16 kisschan; /* When KISS if: channel# this interf. */
int16 mtu; /* Maximum transmission unit size */
int16 dev; /* Subdevice number to pass to send */
int16 flags; /* Configuration flags */
#define IF_CONNECT_MODE 0x01 /* Send datagrams in connected mode */
#define IF_AX25 0x02 /* Interface runs AX.25 */
int16 trace; /* Trace flags */
#define IF_TRACE_OUT 0x01 /* Output packets */
#define IF_TRACE_IN 0x10 /* Packets to me except broadcast */
#define IF_TRACE_ASCII 0x100 /* Dump packets in ascii */
#define IF_TRACE_HEX 0x200 /* Dump packets in hex/ascii */
char *hwaddr; /* Device hardware address, if any */
struct interface *forw; /* Forwarding interface for output, if rx only */
struct nriface *nriface;/* NET/ROM info, when IF avail to NET/ROM */
struct mheard *heard; /* List of stations heard */
struct mheard *lheard; /* Last entry in heard list */
int16 nheard; /* Number of entries in heard list */
int16 mheard; /* Number of entries to keep for this iface */
};
#define NULLIF (struct interface *)0
extern struct interface *ifaces; /* Head of interface list */
extern struct interface *ifunit(); /* find interface by name */
extern struct interface *if_lookup(); /* same without errormsg */
ə